Skip to content

CNTRLPLANE-3323: Update openshift-hack/rebase.sh#2701

Open
JSampsonIV wants to merge 1 commit into
openshift:masterfrom
JSampsonIV:master
Open

CNTRLPLANE-3323: Update openshift-hack/rebase.sh#2701
JSampsonIV wants to merge 1 commit into
openshift:masterfrom
JSampsonIV:master

Conversation

@JSampsonIV

@JSampsonIV JSampsonIV commented Jun 24, 2026

Copy link
Copy Markdown

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Summary by CodeRabbit

  • New Features
    • Updated the release workflow to use Jira IDs for pull request creation, generating Jira-based titles and including the Kubernetes changelog link.
  • Improvements
    • Refined the OpenShift git update process by using the local tracking branch before pulling and merging the provided Kubernetes tag.
    • Improved Hyperkube Dockerfile build tagging by deriving the tag from the Dockerfile’s base image reference.
  • Bug Fixes
    • Removed the previous Bugzilla-specific pull request flow and aligned argument handling to --jira-id.
  • Documentation
    • Updated rebase documentation to reflect Jira-based ticketing and updated “send email” instructions.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: This pull request explicitly references no jira issue.

Details

In response to this:

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. label Jun 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

openshift-hack/rebase.sh switches rebase ticket handling from Bugzilla to Jira, updates the OpenShift checkout flow, and changes Hyperkube Dockerfile tag derivation. The rebase guide is updated to match the new Jira-based workflow.

Changes

Rebase flow and documentation updates

Layer / File(s) Summary
Rebase guidance updates
REBASE.openshift.md
The rebase guide replaces Bugzilla wording with Jira-based email and step-by-step rebase instructions.
Jira argument handling and PR creation
openshift-hack/rebase.sh
The script help text, argument parsing, processed output, and PR creation logic use jira_id instead of bugzilla_id.
OpenShift checkout and Hyperkube tag update
openshift-hack/rebase.sh
The OpenShift update flow checks out the tracking branch before merging, and the Hyperkube Dockerfile update derives the image tag from the Dockerfile FROM line.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately reflects the main change to openshift-hack/rebase.sh.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR only changes script/docs; the touched files contain no Ginkgo It/Describe/Context/When titles to evaluate.
Test Structure And Quality ✅ Passed No Ginkgo test files were changed; this PR only updates rebase.sh and docs, so the test-quality check is not applicable.
Microshift Test Compatibility ✅ Passed No new Ginkgo e2e tests were added; the PR only changes a shell script and documentation, so MicroShift compatibility is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Only openshift-hack/rebase.sh and REBASE.openshift.md changed; neither adds Ginkgo/e2e tests, so no SNO-specific assumptions to review.
Topology-Aware Scheduling Compatibility ✅ Passed Only a rebase shell script and markdown docs changed; no deployment manifests, operators, or controllers, and no scheduling/topology constraints were introduced.
Ote Binary Stdout Contract ✅ Passed PR only changes a shell script and docs; no OTE binary main/init/TestMain/suite stdout writes were introduced.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PASS: The PR only updates a shell script and markdown docs; it adds no Ginkgo e2e tests or network-dependent test code, so this check is not applicable.
No-Weak-Crypto ✅ Passed Touched files only change Jira/rebase flow and docs; no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret/token comparisons found.
Container-Privileges ✅ Passed Only rebase.sh and REBASE.openshift.md changed; no container/K8s manifests or privilege fields were introduced.
No-Sensitive-Data-In-Logs ✅ Passed Changed logs only print k8s tag, release, and Jira ID; no passwords, tokens, PII, or internal hostnames were added.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: This pull request explicitly references no jira issue.

Details

In response to this:

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Summary by CodeRabbit

  • New Features

  • Updated the release workflow to use Jira IDs when creating pull requests, with the PR title now reflecting the Jira ticket and including the Kubernetes changelog link.

  • Improved branch handling during update steps for a smoother release process.

  • Bug Fixes

  • Adjusted file-editing behavior to safely create and clean up temporary backup files during release updates.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@JSampsonIV JSampsonIV changed the title NO-JIRA: Update openshift-hack/rebase.sh CNTRLPLANE-3323: Update openshift-hack/rebase.sh Jun 24, 2026
@openshift-ci-robot

openshift-ci-robot commented Jun 24, 2026

Copy link
Copy Markdown

@JSampsonIV: This pull request references CNTRLPLANE-3323 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature to target the "5.0.0" version, but no target version was set.

Details

In response to this:

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Summary by CodeRabbit

  • New Features

  • Updated the release workflow to use Jira IDs when creating pull requests, with the PR title now reflecting the Jira ticket and including the Kubernetes changelog link.

  • Improved branch handling during update steps for a smoother release process.

  • Bug Fixes

  • Adjusted file-editing behavior to safely create and clean up temporary backup files during release updates.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot requested review from benluddy and p0lyn0mial June 24, 2026 14:46

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@openshift-hack/rebase.sh`:
- Line 23: The help text for the --jira-id option in the rebase.sh script is
misleading because it says it creates a Jira ticket, but the actual flow only
creates a PR with the Jira ID included in the title/body. Update the usage/help
message in the argument parsing or help output around the --jira-id description
to accurately state that it creates a pull request and not a Jira ticket,
keeping the wording aligned with the behavior implemented in the rebase flow.
- Line 101: The git checkout call in rebase.sh is malformed because -b is
consuming --track as the branch name. Update the checkout invocation around the
branch creation logic to either use git checkout --track
"openshift/$openshift_release" or place --track after the new branch name in the
git checkout -b path, so the branch is created/tracked correctly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4851948b-257c-4a28-996f-5ab1e68f501d

📥 Commits

Reviewing files that changed from the base of the PR and between cb701a7 and 1c02342.

📒 Files selected for processing (1)
  • openshift-hack/rebase.sh

Comment thread openshift-hack/rebase.sh Outdated
Comment thread openshift-hack/rebase.sh Outdated
Comment thread openshift-hack/rebase.sh Outdated
Comment thread openshift-hack/rebase.sh
git pull openshift "$openshift_release"

git merge "$k8s_tag"
# shellcheck disable=SC2181

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why's this getting deleted?

Comment thread openshift-hack/rebase.sh Outdated
# openshift-hack/images/hyperkube/Dockerfile.rhel still has FROM pointing to old tag
# we need to remove the prefix "v" from the $k8s_tag to stay compatible
sed -i -E "s/(io.openshift.build.versions=\"kubernetes=)(1.[1-9]+.[1-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel
sed -i.bak -E "s/(io.openshift.build.versions=\"kubernetes=)(1.[1-9]+.[1-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel && rm -f openshift-hack/images/hyperkube/Dockerfile.rhel.bak

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a misplaced find/replace? -i.bak. Why are we deleting a .bak version of the Dockerfile?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was to allow the script to be run on MacOS, since it requires an extension argument for -i. It's then deleted as part of cleanup.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm, maybe instead we could just run this in a container, much like the go mod tidy and friends; wouldn't necessarily have to be in the openshift rhel, could be something small, like the alpine docker image.

Comment thread openshift-hack/rebase.sh Outdated
Comment thread openshift-hack/rebase.sh Outdated
Comment thread openshift-hack/rebase.sh Outdated
@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot

openshift-ci-robot commented Jun 24, 2026

Copy link
Copy Markdown

@JSampsonIV: This pull request references CNTRLPLANE-3323 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature to target the "5.0.0" version, but no target version was set.

Details

In response to this:

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Summary by CodeRabbit

  • New Features
  • Updated the release workflow to create pull requests using Jira IDs, with the PR title reflecting the Jira ticket and including the Kubernetes changelog link.
  • Improvements
  • Refined the git update process by using a local tracking branch for the OpenShift release before merging the provided Kubernetes tag.
  • Bug Fixes
  • Improved file-edit safety by generating in-place edit backups and cleaning them up after updating release-related Dockerfile and dependency references.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Comment thread openshift-hack/rebase.sh Outdated
@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot

openshift-ci-robot commented Jun 24, 2026

Copy link
Copy Markdown

@JSampsonIV: This pull request references CNTRLPLANE-3323 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature to target the "5.0.0" version, but no target version was set.

Details

In response to this:

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Summary by CodeRabbit

  • New Features
  • Updated the release workflow to use Jira IDs for pull request creation, generating Jira-based titles and including the Kubernetes changelog link.
  • Improvements
  • Refined the OpenShift git update process by using a local tracking branch before merging the provided Kubernetes tag.
  • Improved Hyperkube Dockerfile update logic by deriving the build tag from the Dockerfile’s base image reference.
  • Bug Fixes
  • Safer in-place file edits are now performed with temporary backups that are removed after the update.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
openshift-hack/rebase.sh (1)

129-129: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Remove unused go_mod_go_ver assignment.

It’s no longer used after deriving tag from the Dockerfile FROM line.

Suggested cleanup
-go_mod_go_ver=$(grep -E 'go 1\.[1-9][0-9]?' go.mod | sed -E 's/go (1\.[1-9][0-9]?)/\1/' | cut -d '.' -f 1,2) # Need to handle mod versions like 1.23 and 1.23.4; our release images only have major.minor
 tag=$(grep "^FROM" openshift-hack/images/hyperkube/Dockerfile.rhel | head -n1 | sed -E 's/.*:([^ ]+).*/\1/')
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@openshift-hack/rebase.sh` at line 129, The `go_mod_go_ver` assignment in
`rebase.sh` is now unused after `tag` is derived from the Dockerfile `FROM`
line. Remove that leftover shell variable initialization and any related dead
logic, keeping the surrounding tag derivation flow intact.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@openshift-hack/rebase.sh`:
- Line 128: The version-matching regex in the rebase.sh replacement for the
Dockerfile update is too restrictive and can miss valid Kubernetes versions with
0 components, so the substitution may not run. Update the sed expression used in
this step to match general semantic version strings in the openshift build
versions value, and keep the replacement behavior in the same rebase.sh block
that edits openshift-hack/images/hyperkube/Dockerfile.rhel.

---

Nitpick comments:
In `@openshift-hack/rebase.sh`:
- Line 129: The `go_mod_go_ver` assignment in `rebase.sh` is now unused after
`tag` is derived from the Dockerfile `FROM` line. Remove that leftover shell
variable initialization and any related dead logic, keeping the surrounding tag
derivation flow intact.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: ceadba2c-cb99-4b4d-81cf-8f600ac5707d

📥 Commits

Reviewing files that changed from the base of the PR and between da92b6d and c97e447.

📒 Files selected for processing (1)
  • openshift-hack/rebase.sh

Comment thread openshift-hack/rebase.sh Outdated
# openshift-hack/images/hyperkube/Dockerfile.rhel still has FROM pointing to old tag
# we need to remove the prefix "v" from the $k8s_tag to stay compatible
sed -i -E "s/(io.openshift.build.versions=\"kubernetes=)(1.[1-9]+.[1-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel
sed -i.bak -E "s/(io.openshift.build.versions=\"kubernetes=)(1.[1-9]+.[1-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel && rm -f openshift-hack/images/hyperkube/Dockerfile.rhel.bak

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Line 128 regex can fail for valid versions containing 0.

(1.[1-9]+.[1-9]+) won’t reliably match values like 1.30.0, so the Dockerfile replacement may silently not happen.

Suggested fix
-sed -i.bak -E "s/(io.openshift.build.versions=\"kubernetes=)(1.[1-9]+.[1-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel && rm -f openshift-hack/images/hyperkube/Dockerfile.rhel.bak
+sed -i.bak -E "s/(io.openshift.build.versions=\"kubernetes=)(1\.[0-9]+\.[0-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel && rm -f openshift-hack/images/hyperkube/Dockerfile.rhel.bak
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
sed -i.bak -E "s/(io.openshift.build.versions=\"kubernetes=)(1.[1-9]+.[1-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel && rm -f openshift-hack/images/hyperkube/Dockerfile.rhel.bak
sed -i.bak -E "s/(io.openshift.build.versions=\"kubernetes=)(1\.[0-9]+\.[0-9]+)/\1${k8s_tag:1}/" openshift-hack/images/hyperkube/Dockerfile.rhel && rm -f openshift-hack/images/hyperkube/Dockerfile.rhel.bak
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@openshift-hack/rebase.sh` at line 128, The version-matching regex in the
rebase.sh replacement for the Dockerfile update is too restrictive and can miss
valid Kubernetes versions with 0 components, so the substitution may not run.
Update the sed expression used in this step to match general semantic version
strings in the openshift build versions value, and keep the replacement behavior
in the same rebase.sh block that edits
openshift-hack/images/hyperkube/Dockerfile.rhel.

@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot

openshift-ci-robot commented Jun 24, 2026

Copy link
Copy Markdown

@JSampsonIV: This pull request references CNTRLPLANE-3323 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature to target the "5.0.0" version, but no target version was set.

Details

In response to this:

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Summary by CodeRabbit

  • New Features
  • Updated the release workflow to use Jira IDs for pull request creation, generating Jira-based titles and including the Kubernetes changelog link.
  • Improvements
  • Refined the OpenShift git update process by using the local tracking branch before pulling and merging the provided Kubernetes tag.
  • Improved Hyperkube Dockerfile build tagging by deriving the tag from the Dockerfile’s base image reference.
  • Bug Fixes
  • Removed the previous Bugzilla-specific pull request path and aligned argument handling to --jira-id.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@openshift-hack/rebase.sh`:
- Around line 14-23: The CLI flag rename is not reflected in the contributor
docs, so the documented `openshift-hack/rebase.sh` command still uses the
removed `--bugzilla-id` option. Update `REBASE.openshift.md` to replace every
`--bugzilla-id` reference with `--jira-id`, keeping the example and surrounding
text aligned with the current `usage()` output in `openshift-hack/rebase.sh`.
Make sure any other mention of the old flag in the same docs section is renamed
consistently.
- Line 128: The in-place edit in the rebase script is using a BSD-only sed form,
which breaks on GNU sed in Linux/CI. Update the command in rebase.sh to use a
portable in-place edit approach (for example, a backup-suffix form with cleanup)
while keeping the existing replacement logic for the hyperkube Dockerfile.rhel
update.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 7b34bd4d-f372-4666-bd7f-83406b1f5449

📥 Commits

Reviewing files that changed from the base of the PR and between c97e447 and ac34a9f.

📒 Files selected for processing (1)
  • openshift-hack/rebase.sh

Comment thread openshift-hack/rebase.sh Outdated
Comment thread openshift-hack/rebase.sh Outdated
Comment thread openshift-hack/rebase.sh Outdated
Comment on lines 133 to 136

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize you didn't add this in this PR but just looking through this script for the first time... I think we have an issue here @dusk125. Isn't this && going to run go mod tidy in the container but the update-vendor script on the host? And then if so the return value check afterwards is looking at the wrong thing.

@dusk125 dusk125 Jun 24, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow.... Yeah I think you're right... that could explain some issues I had had in the past!

You'd have to do /bin/bash -c "go mod tidy && hack/update-vendor.sh"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add that in

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would that also explain the need for the additional commit in #2693?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added /bin/bash

@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci-robot

openshift-ci-robot commented Jun 24, 2026

Copy link
Copy Markdown

@JSampsonIV: This pull request references CNTRLPLANE-3323 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the feature to target the "5.0.0" version, but no target version was set.

Details

In response to this:

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR is related to:

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


Summary by CodeRabbit

  • New Features
  • Updated the release workflow to use Jira IDs for pull request creation, generating Jira-based titles and including the Kubernetes changelog link.
  • Improvements
  • Refined the OpenShift git update process by using the local tracking branch before pulling and merging the provided Kubernetes tag.
  • Improved Hyperkube Dockerfile build tagging by deriving the tag from the Dockerfile’s base image reference.
  • Bug Fixes
  • Removed the previous Bugzilla-specific pull request flow and aligned argument handling to --jira-id.
  • Documentation
  • Updated rebase documentation to reflect Jira-based ticketing and updated “send email” instructions.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
openshift-hack/rebase.sh (1)

129-129: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Remove unused go_mod_go_ver assignment (Line 129).

It is currently dead code after tag derivation moved to the Dockerfile FROM line.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@openshift-hack/rebase.sh` at line 129, The go_mod_go_ver assignment in
rebase.sh is dead code now that tag derivation moved to the Dockerfile FROM
line. Remove the unused go_mod_go_ver variable setup and any related shell
plumbing in the rebase logic, keeping the rest of the version/tag handling
intact.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@REBASE.openshift.md`:
- Around line 525-527: The fenced shell command example in the rebase
documentation is missing a language tag, which will trigger markdown linting.
Update the code block around the openshift-hack/rebase.sh example to use a shell
label such as bash so the fenced block is properly annotated and remains
lint-clean.

---

Nitpick comments:
In `@openshift-hack/rebase.sh`:
- Line 129: The go_mod_go_ver assignment in rebase.sh is dead code now that tag
derivation moved to the Dockerfile FROM line. Remove the unused go_mod_go_ver
variable setup and any related shell plumbing in the rebase logic, keeping the
rest of the version/tag handling intact.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: ed6867cd-7e89-4d76-ae84-4ac61f38eef8

📥 Commits

Reviewing files that changed from the base of the PR and between ac34a9f and a97f44b.

📒 Files selected for processing (2)
  • REBASE.openshift.md
  • openshift-hack/rebase.sh

Comment thread REBASE.openshift.md
Comment thread openshift-hack/rebase.sh Outdated
@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@dusk125

dusk125 commented Jun 25, 2026

Copy link
Copy Markdown

/lgtm
/verified by @dusk125

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jun 25, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@dusk125: This PR has been marked as verified by @dusk125.

Details

In response to this:

/lgtm
/verified by @dusk125

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2026
@JSampsonIV

Copy link
Copy Markdown
Author

/test verify

@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Jun 25, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2026
@JSampsonIV

Copy link
Copy Markdown
Author

@dusk125 I had to push a change for the variable expansion on line 104, could you re-verify please

@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@jubittajohn

Copy link
Copy Markdown

/retest

@openshift-ci-robot

Copy link
Copy Markdown

@JSampsonIV: the contents of this pull request could not be automatically validated.

The following commits could not be validated and must be approved by a top-level approver:

Comment /validate-backports to re-evaluate validity of the upstream PRs, for example when they are merged upstream.

@dusk125

dusk125 commented Jun 29, 2026

Copy link
Copy Markdown

@jubittajohn can we just override these last failing tests since this is just a tooling change?

@dusk125

dusk125 commented Jun 29, 2026

Copy link
Copy Markdown

/lgtm
/verified by me

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jun 29, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@dusk125: This PR has been marked as verified by me.

Details

In response to this:

/lgtm
/verified by me

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2026
@openshift-ci

openshift-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dusk125, jacobsee, JSampsonIV

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dusk125

dusk125 commented Jul 2, 2026

Copy link
Copy Markdown

/hold for the rebase to complete #2653

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 2, 2026
@jubittajohn

Copy link
Copy Markdown

/test all

@openshift-ci

openshift-ci Bot commented Jul 7, 2026

Copy link
Copy Markdown

@JSampsonIV: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-ovn-runc 3106f1e link false /test e2e-aws-ovn-runc
ci/prow/e2e-metal-ipi-ovn-ipv6 ccf4fe6 link true /test e2e-metal-ipi-ovn-ipv6
ci/prow/e2e-aws-ovn-techpreview ccf4fe6 link false /test e2e-aws-ovn-techpreview
ci/prow/e2e-aws-ovn-crun ccf4fe6 link true /test e2e-aws-ovn-crun

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@jubittajohn

Copy link
Copy Markdown

/test all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. backports/unvalidated-commits Indicates that not all commits come to merged upstream PRs. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants